#include <stdio.h>
#include <stdlib.h>

int main(void)
{
	
	FILE *file=NULL;
	if((file=fopen("hello.txt","w"))==NULL){
	printf("文件打开失败\n");
	exit(1);
	}
	fprintf(file,"%s","hello world\nhello");
	
	fclose(file);

	return 0;
}
